﻿using System;
using System.Collections.Generic;

namespace ProjectMyFarmAndShe
{
    #region 工具栏数据保存
    
    [Serializable]
    public class SaveToolbarData
    {
        public List<SaveToolbarConfig> Datas = new List<SaveToolbarConfig>();
    }

    [Serializable]
    public class SaveToolbarConfig
    {
        public string Key;
        public int Count;

        public SaveToolbarConfig(string key, int count)
        {
            Key = key;
            Count = count;
        }
    }
    
    #endregion

    #region 邮件数据保存

    [Serializable]
    public class SaveEmailData
    {
        public List<SaveEmailConfig> Datas = new List<SaveEmailConfig>();
    }

    [Serializable]
    public class SaveEmailConfig
    {
        public string Title;
        public string Publisher;
        public string Info;
        //感谢信发送的日期
        public int EmailSendDay;
        public bool IsRead;
    }

    #endregion

    #region 挑战数据保存

    [Serializable]
    public class SaveChallengeData
    {
        public string Key;
        public bool UnLock;
        public bool Finished;
        public List<SaveChallengeDataConfig> Challenges = new List<SaveChallengeDataConfig>();
    }

    [Serializable]
    public class SaveChallengeDataConfig
    {
        public bool Finished;
        public int FinishedDay;
    }

    #endregion

    #region 网格数据存储

    [Serializable]
    public class SaveGridData
    {
        public List<SaveGridConfig> Datas = new List<SaveGridConfig>();
    }

    [Serializable]
    public class SaveGridConfig
    {
        public int X;
        public int Y;
        public string PlantItemKey;
        public bool IsWater;

        public PlantState CurrentState;
        public int PlantIndex;
        public int PlantCount;
    }

    #endregion
}